<div class="Popup">
    <div class="Popup-window">
        <div class="panel panel-default">
            <div class="panel-heading font-bold text-left">添加分类名</div>
            <div class="panel-body" ng-controller="createIndustryCtrl">
                <form name="industryAddform" method="post" class="ng-pristine ng-valid" ng-submit="createIndustry()">
                    <div class="group-model">
                        <label>顶级分类</label>
                        <select class="input-sm form-control" ng-model="industry.parentId" required>
                            <option value="">请选择分类</option>
                            <option value="root">顶级</option>
                            <option value="{{m.id}}" ng-repeat="m in items">{{m.fullName}}</option>
                        </select>
                    </div>
                    <div class="group-model">
                        <label>行业名称</label>
                        <input type="text" ng-model="industry.name" class="form-control" placeholder="输入行业名称" required>
                    </div>
                    <div class="text-right">
                        <button class="btn m-b-xs w-xs btn-info" type="submit" ng-disabled="industryAddform.$invalid">保存</button>
                        <button class="btn m-b-xs w-xs btn-default" ng-click="cancel()">取消</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>